package cn.itsource.ymcc.feignclient;

import cn.itsource.ymcc.feignclient.fallbackfactory.SystemFeignClientFallbackFactory;
import cn.itsource.ymcc.result.JsonResult;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-system",fallbackFactory = SystemFeignClientFallbackFactory.class)
public interface SystemFeignClient {
    @GetMapping("/employee/getEmployeeByLoginId/{loginId}")
    public JsonResult getEmployeeByLoginId(@PathVariable("loginId")Long loginId);
}
